/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_cursoCriteria extends AbstractORMCriteria {
	public final IntegerExpression cu_id;
	public final StringExpression cu_curso;
	
	public Trp_cursoCriteria(Criteria criteria) {
		super(criteria);
		cu_id = new IntegerExpression("cu_id", this);
		cu_curso = new StringExpression("cu_curso", this);
	}
	
	public Trp_cursoCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_curso.class));
	}
	
	public Trp_cursoCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_nivelCriteria createNivel_id_nivelCriteria() {
		return new Trp_nivelCriteria(createCriteria("nivel_id_nivel"));
	}
	
	public Trp_colegioCriteria createColegioCriteria() {
		return new Trp_colegioCriteria(createCriteria("colegio"));
	}
	
	public Trp_alumnoCriteria createTrp_alumno1Criteria() {
		return new Trp_alumnoCriteria(createCriteria("ORM_Trp_alumno1"));
	}
	
	public Trp_curso uniqueTrp_curso() {
		return (Trp_curso) super.uniqueResult();
	}
	
	public Trp_curso[] listTrp_curso() {
		java.util.List list = super.list();
		return (Trp_curso[]) list.toArray(new Trp_curso[list.size()]);
	}
}

